<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<jsp:include page="head.jsp"/>

<div class="layui-container">
    <div class="layui-row ">
        <div style="padding-left: 150px; padding-right: 150px;">
            <div class="fly-panel" >
                <ul class="fly-list">
                    <li style="height: 450px;padding-top: 30px;">

                        <img src="${pageContext.request.contextPath}\\img\\success.png" >
                        <h1>发布成功！<span id="NextTo">5</span>秒后自动跳转到首页</h1>

                    </li>
                </ul>

            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    function GoNext(seconds,url){
        var next = document.getElementById('NextTo');
        next.innerHTML=seconds;
        if(--seconds>0){
            setTimeout("GoNext("+seconds+",'"+url+"')",1000);
        }
        else{
            location.href=url;
        }
    }
</script>
<script type="text/javascript">GoNext(5,'${pageContext.request.contextPath}/blog/index.do');</script>
<jsp:include page="bottom.jsp"/>